package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 物流费用
 * </p>
 *
 * @author chenxuebin
 * @since 2018-09-04
 */
@TableName("t_logistics")
public class Logistics extends Model<Logistics> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long gid;
	private Long uid;
    /**
     * 物流名称&
     */
	private String name;
    /**
     * 是否包邮@0：否；1：包邮&
     */
	@TableField("is_free")
	private Integer isFree;
    /**
     * 计价方式@1：按件数；2：按重量&
     */
	@TableField("fee_type")
	private Integer feeType;
    /**
     * 运送方式@1：快递；2：EMS；3：平邮&
     */
	@TableField("freight_type")
	private Integer freightType;
    /**
     * 起始数量&
     */
	@TableField("first_number")
	private Integer firstNumber;
    /**
     * 起始金额&
     */
	@TableField("first_amount")
	private Integer firstAmount;
    /**
     * 加量数量
     */
	@TableField("add_number")
	private Integer addNumber;
    /**
     * 加量金额
     */
	@TableField("add_amount")
	private Integer addAmount;
    /**
     * 地区#地区，NULL为默认全国&
     */
	private String area;
    /**
     * 启用状态&
     */
	private Integer state;

	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getIsFree() {
		return isFree;
	}

	public void setIsFree(Integer isFree) {
		this.isFree = isFree;
	}

	public Integer getFeeType() {
		return feeType;
	}

	public void setFeeType(Integer feeType) {
		this.feeType = feeType;
	}

	public Integer getFreightType() {
		return freightType;
	}

	public void setFreightType(Integer freightType) {
		this.freightType = freightType;
	}

	public Integer getFirstNumber() {
		return firstNumber;
	}

	public void setFirstNumber(Integer firstNumber) {
		this.firstNumber = firstNumber;
	}

	public Integer getFirstAmount() {
		return firstAmount;
	}

	public void setFirstAmount(Integer firstAmount) {
		this.firstAmount = firstAmount;
	}

	public Integer getAddNumber() {
		return addNumber;
	}

	public void setAddNumber(Integer addNumber) {
		this.addNumber = addNumber;
	}

	public Integer getAddAmount() {
		return addAmount;
	}

	public void setAddAmount(Integer addAmount) {
		this.addAmount = addAmount;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Logistics{" +
			"id=" + id +
			", gid=" + gid +
			", name=" + name +
			", isFree=" + isFree +
			", feeType=" + feeType +
			", freightType=" + freightType +
			", firstNumber=" + firstNumber +
			", firstAmount=" + firstAmount +
			", addNumber=" + addNumber +
			", addAmount=" + addAmount +
			", area=" + area +
			", state=" + state +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
